#include "tic.h"
int row=-1;
int colum=-1;
 char grid[6][6]={	{'*','1','|','2','|','3'},
						{'1',' ','|',' ','|',' '},
						{'-','-','+','-','+','-'},
						{'2',' ','|',' ','|',' '},
						{'-','-','+','-','+','-'},
						{'3',' ','|',' ','|',' '},
	};
void printX(){
	int tac[9][9];/*={{'\\',' ',' ',' ',' ',' ',' ',' ','/'},
					{' ','\\',' ',' ',' ',' ',' ','/',' '},
					{' ',' ','\\',' ',' ',' ','/',' ',' '},
					{' ',' ',' ','\\',' ','/',' ',' ',' '},
					{' ',' ',' ',' ',' X',' ',' ',' ',' '},
					{' ',' ',' ',' /',' ','\\',' ',' ',' '},
					{' ',' ',' /',' ',' ',' ','\\',' ',' '},
					{' ',' /',' ',' ',' ',' ',' ','\\',' '},
					{' /',' ',' ',' ',' ',' ',' ',' ','\\'}
	};*/	
	for(int i=0;i<9;i++){
		for(int h=0;h<9;h++){
		if(i==h){
			tac[i][h]=1;
		}
		else if(i+h==8){
		tac[i][h]=1;
		}
		else{
			tac[i][h]=0;
		}
		}}

	for(int i=0;i<9;i++){
		for(int h=0;h<9;h++){
		cout<<tac[i][h];
		}cout<<"\n";}
		
}
void makegrid(){
	 char grid[6][6]={	{'*','1','|','2','|','3'},
						{'1',' ','|',' ','|',' '},
						{'-','-','+','-','+','-'},
						{'2',' ','|',' ','|',' '},
						{'-','-','+','-','+','-'},
						{'3',' ','|',' ','|',' '},
	};
for(int i=0;i<6;i++){
		for(int h=0;h<6;h++){
		cout<<grid[i][h]<<" ";
		}cout<<"\n";}
}
void printgrid(){
	for(int i=0;i<6;i++){
		for(int h=0;h<6;h++){
		cout<<grid[i][h]<<" ";
		}cout<<"\n";}
}
void narrator(){
	cout<<"Player 1 Its Your Turn!";
	cout<<"\nEnter Row  ";
	int x=-1;
	cin>>x;
	row = x;
	cout<<"Enter Colum  ";
	int y=-1;
	cin>>y;
	colum = y;

}
void checkplace(){
	if((row==1)&&(colum==2)){
		grid[1][3]='X';
	}
}
int main(){
	makegrid();
	narrator();
	checkplace();
	printgrid();
	while(true){};
}

TIC::TIC(void)
{
}


TIC::~TIC(void)
{
}
